﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>TCP Client and Multithreaded Server</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body>
<P>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0 
cellPadding=2 width="100%" border=1>
  
  <TR>
    <TD>&nbsp;The ScoreServer class of the previous example is <STRONG><FONT 
      color=#800080>inadequate</FONT></STRONG> for real server-side 
      applications because it can only <STRONG><FONT 
      color=#000080>deal</FONT></STRONG>     
           with one client at a time.</TD>
    <TD>     ...&nbsp; <FONT 
      color=#800080><STRONG>không thỏa đáng</STRONG></FONT>  ...</TD></TR>
  <TR>
    <TD>&nbsp; The ThreadedScoreServer class 
      <STRONG>described</STRONG> in this section <STRONG>solves</STRONG> that 
      problem by creating a thread (a ThreadedScoreHandler object) to process 
      each client who connects</TD>
    <TD>&nbsp;...được mô tả ... giải quyết vấn đề bằng 
      cách</TD></TR>
  <TR>
    <TD>The HighScores object is <STRONG>referenced</STRONG> by all the 
      threads (<STRONG>indicated</STRONG> by the dotted lines in Figure 
29-11)</TD>
    <TD>... được tham chiếu bởi tất cả ... (được chỉ ra 
      bởi&nbsp;đường&nbsp;đứt né&nbsp;&nbsp;)</TD></TR>
  <TR>
    <TD>A lock can be <STRONG>placed</STRONG> on the object by making the toString( 
      ) and addScore( ) methods <STRONG>synchronized</STRONG>       
             : </TD>
    <TD>một khóa có thể được đặt trên ... đồng bộ </TD></TR>
  <TR>
    <TD>The <STRONG>multiplexing</STRONG> </TD>
    <TD>ghép kênh</TD></TR>
  <TR>
    <TD>A pseudocode algorithm for the server is <STRONG>given</STRONG> 
    below:</TD>
    <TD>
      <P>thuật toán mã giả ...được đưa ra dưới đây</P></TD></TR>
  <TR>
    <TD></TD>
    <TD></TD></TR></TABLE></P></body>
</html>
